import MJCrequesting from "@/service/index.js";
import { reactive } from "vue";
export default {
  namespaced: true,
  state: {
    initialValue: 1, //序号的初始值
    docpresList: [], //医生开药的药单数组
  },
  mutations: {
    addDocpresList(state) {
      const item = reactive({
        id: state.initialValue++,
        machineName: "药物选择",
        counts: null,
        time: "时间段",
        aroundDinnerData: "",
        mattersData: "",
      });
      state.docpresList.push(item);
    },
    deeleteDocpresList(state, payload) {},
    reFreshDocpresList(state) {
      state.docpresList = [];
    },
    reFreshinitialValue(state) {
      state.initialValue = 1;
    },
  },
  actions: {},
  getters: {},
};
